#include <iostream>

using namespace std;

struct X { int i, j, k = 42; };

int main()
{
    X a[] = { 1, 2, 3, 4, 5, 6 };
    X b[2] = { { 1, 2, 3 }, { 4, 5, 6 } };
    for(auto p = begin(a); p!=end(a);++p)
    {
        cout<<"a_i->"<<p->i<<endl;
        cout<<"a_j->"<<p->j<<endl;
        cout<<"a_k->"<<p->k<<endl;
    }
    for(auto p = begin(b); p!=end(b);++p)
    {
        cout<<"b_i->"<<p->i<<endl;
        cout<<"b_j->"<<p->j<<endl;
        cout<<"b_k->"<<p->k<<endl;
    }
}